package com.bnz.user.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户对象 tb_user
 * 
 * @author mch
 * @date 2022-12-30
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码，加密存储 */
    @Excel(name = "密码，加密存储")
    private String password;

    /** 注册手机号 */
    @Excel(name = "注册手机号")
    private String phone;

    /** 注册邮箱 */
    @Excel(name = "注册邮箱")
    private String email;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updated;

    /** 会员来源：1:PC，2：H5，3：Android，4：IOS，5：WeChat */
    @Excel(name = "会员来源：1:PC，2：H5，3：Android，4：IOS，5：WeChat")
    private String sourceType;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickName;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String name;

    /** 使用状态（Y正常 N非正常） */
    @Excel(name = "使用状态", readConverterExp = "Y=正常,N=非正常")
    private String status;

    /** 头像地址 */
    @Excel(name = "头像地址")
    private String headPic;

    /** QQ号码 */
    @Excel(name = "QQ号码")
    private String qq;

    /** 账户余额 */
    @Excel(name = "账户余额")
    private Long accountBalance;

    /** 手机是否验证 （0否  1是） */
    @Excel(name = "手机是否验证 ", readConverterExp = "0=否,1=是")
    private String isMobileCheck;

    /** 邮箱是否检测（0否  1是） */
    @Excel(name = "邮箱是否检测", readConverterExp = "0=否,1=是")
    private String isEmailCheck;

    /** 性别，1男，2女 */
    @Excel(name = "性别，1男，2女")
    private String sex;

    /** 会员等级 */
    @Excel(name = "会员等级")
    private Long userLevel;

    /** 积分 */
    @Excel(name = "积分")
    private Long points;

    /** 经验值 */
    @Excel(name = "经验值")
    private Long experienceValue;

    /** 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLoginTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setCreated(Date created) 
    {
        this.created = created;
    }

    public Date getCreated() 
    {
        return created;
    }
    public void setUpdated(Date updated) 
    {
        this.updated = updated;
    }

    public Date getUpdated() 
    {
        return updated;
    }
    public void setSourceType(String sourceType) 
    {
        this.sourceType = sourceType;
    }

    public String getSourceType() 
    {
        return sourceType;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setHeadPic(String headPic) 
    {
        this.headPic = headPic;
    }

    public String getHeadPic() 
    {
        return headPic;
    }
    public void setQq(String qq) 
    {
        this.qq = qq;
    }

    public String getQq() 
    {
        return qq;
    }
    public void setAccountBalance(Long accountBalance) 
    {
        this.accountBalance = accountBalance;
    }

    public Long getAccountBalance() 
    {
        return accountBalance;
    }
    public void setIsMobileCheck(String isMobileCheck) 
    {
        this.isMobileCheck = isMobileCheck;
    }

    public String getIsMobileCheck() 
    {
        return isMobileCheck;
    }
    public void setIsEmailCheck(String isEmailCheck) 
    {
        this.isEmailCheck = isEmailCheck;
    }

    public String getIsEmailCheck() 
    {
        return isEmailCheck;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setUserLevel(Long userLevel) 
    {
        this.userLevel = userLevel;
    }

    public Long getUserLevel() 
    {
        return userLevel;
    }
    public void setPoints(Long points) 
    {
        this.points = points;
    }

    public Long getPoints() 
    {
        return points;
    }
    public void setExperienceValue(Long experienceValue) 
    {
        this.experienceValue = experienceValue;
    }

    public Long getExperienceValue() 
    {
        return experienceValue;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setLastLoginTime(Date lastLoginTime) 
    {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLastLoginTime() 
    {
        return lastLoginTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("created", getCreated())
            .append("updated", getUpdated())
            .append("sourceType", getSourceType())
            .append("nickName", getNickName())
            .append("name", getName())
            .append("status", getStatus())
            .append("headPic", getHeadPic())
            .append("qq", getQq())
            .append("accountBalance", getAccountBalance())
            .append("isMobileCheck", getIsMobileCheck())
            .append("isEmailCheck", getIsEmailCheck())
            .append("sex", getSex())
            .append("userLevel", getUserLevel())
            .append("points", getPoints())
            .append("experienceValue", getExperienceValue())
            .append("birthday", getBirthday())
            .append("lastLoginTime", getLastLoginTime())
            .toString();
    }
}
